
/**
 * AppleIIGo
 * Apple 3.5" Disk Drive class
 * (C) 2008 by Marc S. Ressl (mressl@umich.edu)
 * Released under the GPL
 */

#ifndef APPLE35DISKDRIVE_H
#define APPLE35DISKDRIVE_H

#include "FloppyDiskDrive.h"

class Apple35DiskDrive : public FloppyDiskDrive {
public:
	Apple35DiskDrive();
	
	bool mount(char * diskImagePath);
	void unmount();
	
	void setControl(bool value);
	void setPhaseRegister(UINT32 phaseRegister);
	void onPhysicalPhaseUpdate();
//	void setDriveEnabled(bool value);
	
	bool senseInput();
	
protected:
	bool isControl;
	bool isDiskInserted;
	bool isDiskSwitched;
	bool isDiskWriteProtected;
	bool isHeadStepInward;
	bool isHeadStepping;
	bool isMotorOn;
	bool randomValue;
	
	UINT8 getDriveFunction();
};

#endif
